package com.liu.goods.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liu.goods.entity.StockEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * 
 * @author lls
 * @email 302140431@qq.com
 * @date 2021-08-03 16:30:12
 */
@Mapper
public interface StockDao extends BaseMapper<StockEntity> {

    Integer lockStock(@Param("gid") Integer gid, @Param("count") Integer count);

    Integer unLockStock(@Param("gid") Integer gid, @Param("count") Integer count);
}
